import com.wyl.service.UserService
import org.junit.Test
import org.springframework.beans.factory.getBean
import org.springframework.context.support.ClassPathXmlApplicationContext

class AopTest {
    @Test
    fun test(){
        val context = ClassPathXmlApplicationContext("applicationContext.xml")
        val userService = context.getBean<UserService>("userService")
        userService.add()
    }
}